package com.alks.function.data.dto.produce;

import com.alks.entity.data.i18n.TranslateFieldSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
@NoArgsConstructor
@ToString
public class CuttingDispatchTreeData {
    @JsonSerialize(using = TranslateFieldSerializer.class)
    private String title;
    private String cutBatch;
    private String remainQty;
    private String realQty;
    private String mtlOrderQty;
    private boolean leaf;
    private String type;
    private List<CuttingDispatchTreeData> children;
    private boolean checked;

    public List<CuttingDispatchTreeData> getChildren() {
        if (this.children == null) {
            this.children = new ArrayList();
        }
        return this.children;
    }
    public void setChildren(List<CuttingDispatchTreeData> children) {
        this.children = children;
    }
}
